import { TxtToWords } from '@/util/index.js';

export function useImageClasses({ formState }) {
  const addImageClasses = R.forEach( word => (formState.value.imageClasses.add(word)) );
  const loadImageClasses = R.compose( R.andThen(addImageClasses), TxtToWords );
  return { loadImageClasses };
}